code: public static String encodeHeaderParameter(String name, String value) {
  		name = name.toLowerCase(Locale.US);
  
  		// value := token / quoted-string
  		if (isToken(value)) {
  			return name + "=" + value;
  		} else {
  			return name + "=" + quote(value);
  		}
  	}
docs: Encodes the specified strings into a header parameter as described in RFC
  2045 section 5.1 and RFC 2183 section 2. The specified strings should not
  contain any illegal (control or non-ASCII) characters.
  
  @param name
  parameter name.
  @param value
  parameter value.
  @return encoded result.