pub fn encode_text_string(text: &str) -> Vec<u8> ⓘ
Encodes a text string: PDFDocEncoding when every character has a byte there, otherwise UTF-16BE with a byte order mark (works in every version).