Improve wchar and utf8 conversion memdbg
* src/w32-gettext.h (wchar_to_utf8, utf8_to_wchar): replace by logging macros.