Encoding: fix null values and too many SWITCH_PAGE

And added missing ActiveSync codepages (from [Mozilla's AS project](https://github.com/mozilla-b2g/jsas/tree/master/codepages)).