Rewrite iso-2022-jp https://www.w3.org/Bugs/Public/show_bug.cgi?id=27256

This makes it a closer match to the original RFC which ICU mostly
followed.

Still a couple of differences as ICU has inconsistent error handling
and does the Katakana extension differently.