fix some utf-8 error when running on window in cmd.exe instead of idle