code: public static String normalizeCharset(String s) {
          String n = CHARSETS.get(s);
          return (n == null) ? s : n;
      }
docs: Convert alternate charset names (eg utf8) to normalized name (eg UTF-8).
  
  @param s the charset to normalize
  @return the normalized charset (or null if normalized version not found)