analysis of GBK encoding rules