fn print_escaped<W: Write>(out: &mut W, s: &[u8]) -> Result<()>
Print escaped path (matches C implementation behavior).