trim slashes after clearing query string off the uri