I am having the exact same issue as shown here: Why does _GET in PHP wrongly decodes slash?
An HTML form passes the parameters, so there is no need for urlencode(). If it passes a single backslash ("%5c") on the URL, then "$_GET[name]" will return 2 slashes for every one passed!
I am on PHP 7.4, and I understand that magic slashes have been removed in that, so the solution for the old issue doesn't apply to me. In any case, I tried to turn off "magic_quotes_gpc" in PHP (set_ini) as well as ".htaccess".