pub fn process_encode_io_result(result: Result<(), Error>) -> Result<(), Error>
Converts an IO encoding error (and logs when in error) into an EncodingResult