pub(crate) fn write_field<S: AsRef<[u8]>>( writer: &mut impl Write, s: S, escape: bool, ) -> Result<()>