Closure compiler fixes; fix GB18030 encoder