sanitize_url now works if host is None