fix web url parsing