Escapes reserved characters in $uri-part by replacing it with its percent-encoded form as described in [RFC 3986]. If $uri-part is the empty sequence, returns the zero-length string.
$uri-part
The URI part to encode
Returns the URI part with reserved characters percent encoded