pub fn to_vec_with_encoding<T: Serialize>( value: &T, encoding: &'static Encoding, ) -> Result<Vec<u8>, Error>
Write a properties file to a byte buffer with the specified encoding