Remove trailing slashes because jaxrs will add them