URL encode
Percent-encoding for query strings and path segments.
Result
Why you would use this
Spaces, ampersands and every non-ASCII character have to be percent-encoded before they go in a URL, or they end the parameter early. This encodes a single component — it will escape the & and = that separate parameters, which is the point.