normalize protocols properly in normalize_resource_url