added remove trailing slash rewrite - untested - references #45