I agree that this should be fixed.
It is not as easy as accepting the Cpx version of the IBMx character set though.
The code you pointed out was added to avoid an expensive asccii/ebcdic conversion . Performance tests demonstrate that the most costly part of the conversion is String.getBytes(<charset>).
Another phenomenon is that a relatively large number of people use legstar in non ebcdic evironments. So the code page is not always an ebcdic code page.
So I tried to infer from the charset name if it was EBCDIC or not.
Testing the IBM prefix is not the best thing to do though. We should probably replace that with an explicit list of charsets known to be EBCDIC. I will look into that.
Thanks for investigating.
Fady