Convert most of the file APIs to Unicode.

21 files changed