Encode the components of a multi-segment url.
The url to encode.
the encoded url.
Preserves the '/' separators. Should not include the base url, since all parts are escaped.
'/'
Encode the components of a multi-segment url.