Fixes #8

This should handle the missing trailing "/" in the URL. Also added another test case with missing "/"
Yes it is. But according to this: http://www.dotnetperls.com/trimend . Substring is faster :)