Align EUC-JP encoder with spec