JScript  

The URI to be encoded contains an invalid character

[This is preliminary documentation and subject to change]

You attempted to encode a string as a URI (Uniform Resource Identifier), but it contained invalid characters. Although most characters are valid inside strings to be converted to URIs, some Unicode character sequences are illegal.

To correct this error

See Also

encodeURI Method | encodeURIComponent Method