moved all url sanitation to single function