This should be `validate_uri`.