pub fn write_char_as_codepoint<W: Write>(output: &mut W, ch: char) -> Result<()>