fix codec bug in Chinese Language Windows