Correctly handle trailing slash

Fixes #27
Merge branch 'trailing-slash' of git://github.com/jumph4x/wiselinks into jumph4x-trailing-slash