fn decode_name(bytes: &[u8]) -> Cow<'_, str>
Preserve valid UTF-8 names; otherwise decode each source byte as Latin-1.