URL encoding replaces characters that are not safe in a URL with a percent sign followed by two hexadecimal digits, such as %20 for a space.
Why it matters
It stops characters like &, = and ? from being mistaken for URL syntax. Encode each query value separately rather than the whole URL.
Source: RFC 3986