No urlquote

Due to `ulrquote` in the midst of the middleware causing issues, this PR is a rewrite using a regular expression to match and remove the trailing slash.