Remove automatic insertion of / at the end of a URI

As per wj comment on pull request