additional refactoring work for Chinese encodings. …
this also keeps up with the recent WHATWG spec changes, including a merge of GBK18030 with GB18030.