Rescue InvalidURIError in url_with_params