public static String clean(String charsetName) {
        try {
            return forName(charsetName).name();
        } catch (IllegalArgumentException e) {
            return null;
        }
    }
Handle various common charset name errors, and return something
that will be considered valid (and is normalized)

@param charsetName name of charset to process
@return potentially remapped/cleaned up version of charset name
tika-core/src/main/java/org/apache/tika/utils/CharsetUtils.java