Fixes #8

This should handle the missing trailing "/" in the URL. Also added another test case with missing "/"