Fix wide char usage in the debugger (garbage func names) and file handling

Files need to be opened using the wide functions, which makes ones with Japanese and Chinese in their names open properly at least from the limited filenames I attempted.

Accept hrydgard/native#118 first.

-[Unknown]