Improve the severely limited utf8 support in windows.