pub fn write_name(out: &mut Vec<u8>, name: &[u8]) -> Result<()>
Write a name; fails if it is not one.