Get rid of WinAPI ANSI functions

It's a bad style to use ANSI WinAPI functions, causes problems ([Issue 12898](https://issues.dlang.org/show_bug.cgi?id=12898)) and may cause more problems in future.