This patch adds some utility functions for converting between EBCDIC and UTF-8.
This functionality was originally intended to be packed alongside general character set conversion, but based on comments on an RFC it seems more prudent to separate the two tasks.
This functionality will be used in the SystemZ back-end for z/OS as well as GOFF Object File read/write support.
Probably should indicate in the header somewhere precisely what encoding this uses; there are a number of different "EBCDIC" encodings (although probably most of them are irrelevant these days).