handle malformed url
Merge pull request #13 from forumbyr/master

handle malformed url