Encode and decode URL strings with UTF-8.
encodeURIComponent: recommended for a single URL component like a query value or path segment. Characters like '/', '?', '&' will be encoded.