fixed bug with url parsing dying on badly formatted url