fix charset_cvt bug on windows platform