I have a REST service that accepts parameters in a form /{parameter}
Also there is Apache2 that forwards requests to the websevice
A little bit off topic since this does not solve the problem with slashes but I will add it here anyway if anyone else runs in to the same problem as I had.
I had a similar problem that swedish special characters (åäö) in url parameters were not handled correctly when passed through apache proxy. It turned out that apache was doing fine but in the receiving tomcat instance the AJP-connector was missing URIEncoding configuration.
From my tomcat server.xml: