url-encode-url

url-encode-url is an autoloaded compiled Lisp function in `url-util.el'.

(url-encode-url URL)

Return a properly URI-encoded version of URL.
This function also performs URI normalization, e.g. converting
the scheme to lowercase if it is uppercase. Apart from
normalization, if URL is already URI-encoded, this function
should return it unchanged.