Improved codes to avoid warnings and fixed problems UTF-8 charset on Win32 console.
Improved code to avoid warnings and fixed UTF8 problems.