added GBK char set detection