It's desirable to write an [[RFC 3986](https://tools.ietf.org/html/rfc3986)] conformant encoder/decoder for URI parts. Specifically the query string part (it's known that PHP's `parse_str` mangles certain characters in parameter names).