Update clean_url function