private async Task ConvertToUtf8(string file, int codePage, bool reportProgress, int nRows = Int32.MaxValue) { try { DeleteTempFile(); await ConvertToUtf8Worker(file, codePage, reportProgress, nRows); } catch (IOException ex) { OnError(ex.Message); } catch (UnauthorizedAccessException ex) { OnError(ex.Message); } }