Encodes a string.
urlEncode(string)
Specifies the string to be encoded (its value is not modified).
Returns the URL-encoded version of the string.
urlEncode is useful for passing data on a URL. Characters that are not valid in a URL are encoded. Spaces are replaced with '+', special characters are escaped with %nn.