Encode URL parameters correctly
Do not encode an entire URL as a component unless that is the intended use; double encoding can change meaning.
How to check
Encode a single parameter value containing spaces or reserved characters. Insert the result into the intended query parameter and decode it to verify.
Interpreting your results
Do not encode an entire URL as a component unless that is the intended use; double encoding can change meaning.