fix handle_slash so it puts the slash at the end of the url, before the query params
Merge pull request #8 from ethurgood/master

better slash handling