fixed url parser when some idiot feeds it an int