Encode and decode URL special characters
Uses encodeURI and decodeURI functions - does not encode URL necessary characters like / ? : @ & = + $ #
Only letters, numbers and the following special characters remain unchanged: - _ . ! ~ * ' ( )
Other characters are encoded as % followed by two hexadecimal digits