Merge pull request #7515 from JosJuice/wcsftime Use wcsftime instead of strftime on Windows to fix encoding errors