pub fn encode_text(s: &str) -> String
Encode a Rust string for the wire, escaping the four reserved characters that would otherwise be interpreted as structure.