pub fn validate_name(s: &(impl AsRef<[u8]> + ?Sized)) -> Result<&str, Error>
Checks a given &u8 to match the restrictions for StorePath::name, and returns the name as &str if successful.