private static @Nullable String normalizeCharset(String charset) {
    if (charset == null) {
      return null;
    }
    charset = StringUtil.toLowerCase(charset);
    if ("latin-1".equals(charset)) {
      return "iso-8859-1";
    }
    return charset;
  }
private static @Nullable String normalizeCharset(String charset)