Encode text for safe use in URL parameters, or decode URL-encoded strings back to plain text.
URL encoding converts characters into a format that can be transmitted over the Internet. URLs can only contain ASCII characters. Special characters and spaces must be replaced with unsafe ASCII characters followed by a % symbol and two hexadecimal digits.