Encodes a string as a valid Uniform Resource Identifier (URI).
encodeURI(uri)
uri
A value representing an unencoded URI.
A string.
encodeURI("https://calcish.com?q=just a test")
"https://calcish.com?q=just%20a%20test"