Added an overload of toUTF() for wchar_t.
Downgraded max memory of the emulator to 768 MB.

This allows the emulator to be run on Windows with the 32-bit limit.
Fixed bug about file paths on Windows.

Now /'s in file paths are automatically converted to \'s by OS.fopen.