Percent-encode strings and split query parameters.
Encodes either the whole component or only the reserved characters, and breaks any URL down into its query parameters.