Use chunk parser for url parsing

Seems to get to job done better than before!
Merge pull request #778 from mgreter/fix/url-parsing

Use chunk parser for url parsing