pub fn encode_string(str: String) -> Result<EncodedString>
Expand description

Decide, based on heuristics about the contained bytes, which encoding format to use to encode the provided string and then return it, alongside the encoded bytes