ciąg do JavaScript URL

encodeURI(string);
Successful Sandpiper