Align iso-2022-jp encoder with spec