removes trailing /

some rewriters add a trailing slash on missing urls, this makes sure they will work.

p.s. thank you for this amazing lib!