Fixes trailing slash problem
Merge pull request #154 from tpoisot/master

Fixes trailing slash problem