Fix debugger wstring usage.
Open files using wide functions on win32.

Fixes #3432.
Merge pull request #3438 from unknownbrackets/win32-unicode

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