URL Encoder / Decoder

Percent-encode strings for URLs, or decode them back.

About percent-encoding

URLs can only carry a limited character set, so reserved characters (&, =, spaces, non-ASCII) become %XX sequences. encodeURIComponent escapes a single query value; don't use it on a full URL or the :// and / get mangled too.