pub fn validate_user(user_id: &str) -> Result<&str, UrlError>
Validates that a user identifier is suitable as a single URL path segment.