Fix parsing of URLs with no '?' or querystring portion

Addresses Issue #3.