pub fn write_c_string(w: &mut impl Write, s: &str) -> Result<()>
Helper to write a C-Style string (null terminated)