fix UTF-8 char and  gbk char