Convert most of the file APIs to Unicode.