I can infer that your = is getting double encoded.
=
urlencode('=') = '%3D' urlencode('%3D') = '%253D'
Check the parts of your code/compilation where it might be getting encoded twice.