handle non-latin characters in files on Windows