pub fn convert_from_encoding( text: &str, encoding: Encoding, ) -> Result<Vec<u8>, String>
Convert UTF-8 string to a specific encoding