fixed the ToUrl function for some urls that contain "/" and "&"