Replace slashes on `originalUrl`, not final URL

This is a hack specific to our deployment, where our requests are coming
in with doubled-up slashes.