code: protected static String normalizeEncoding(String enc) {
          if (enc.equals("winansi") || enc.equals(""))
              return CP1252;
          else if (enc.equals("macroman"))
              return MACROMAN;
          else
              return enc;
      }
docs: Normalize the encoding names. "winansi" is changed to "Cp1252" and
  "macroman" is changed to "MacRoman".
  @param enc the encoding to be normalized
  @return the normalized encoding