Fixed invalid URL parsing
Merge pull request #5 from pcdinh/master

Invalid URL parsing