pub fn encode(text: String) -> String
Encode text using HTML hex entities, except a-z, A-Z, 0-9, newline, tab, carriage return, and space.