pub fn validate_name(name: &[u8]) -> bool