fix gb2312/gb18030 encoding issues.

Many self-reported GB2312 encoded html pages are GB18030. Since [GB18030 is a superset](http://en.wikipedia.org/wiki/GB18030) of GB2312, it's safe to use GB18030 to encode GB2312 and it gets around the self-reporting problem.