fix charset problem. only support GBK and UTF-8