Fixes #8

This should handle the missing trailing "/" in the URL. Also added another test case with missing "/"
Isn't this the same as TrimEnd(new[] {'/'})?