Strip trailing slashes from aliases

* In a situation where the browser or the web server rewrites http://foo/bar/ to http://foo/bar, aliases
  with trailing slashes will stop working, or cause a redirect loop.