Bugfixes in url parsing.