private Encoding GetEncoding(ConversionResult conversionResult)
 {
     var filePath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
     conversionResult.TargetPathOrNull = filePath;
     conversionResult.WriteToFile();
     var encoding = GetEncoding(filePath);
     File.Delete(filePath);
     return encoding;
 }