Javascript- encodeURI/decodeURI

encodeURI transforms certain characters in strings into UTF-8 equivalents. It supersedes the older escape function. decodeURI reverse the transformation.