Avoid trailing slash in URL causing crash under python's SimpleHTTPServer. Fixes #462