pub fn decode_string(str: EncodedString) -> Result<String>