return quote(str, RFC2396_REG_NAME);
return quote(str, RFC3986_REG_NAME);
  private static String quoteAuthority(String str)  {    // Technically, we should be using RFC2396_AUTHORITY, but    // it contains no additional characters.    return quote(str, RFC2396_REG_NAME);  }