fix bug of encoding, encode gbk