Extracts the charset from a content-type header string
Extracts the charset from a content-type header string
content-type header value
the charset contained in the content-type or the default one-byte encoding charset (to avoid tampering binary buffer).
urlencodes a query string by preserving key-value pairs.