pub fn encode_string(s: &str) -> Vec<u8> ⓘ
Encode a UTF-8 string as a length-prefixed byte sequence.
Format: [length: u32 LE][UTF-8 bytes]
[length: u32 LE][UTF-8 bytes]