Remove the string replaces
MODIFY
WalletWasabi.Gui/CrashReport/CrashReporter.cs
WalletWasabi.Gui/CrashReport/CrashReporter.cs
@@ -53,18 +53,5 @@ namespace WalletWasabi.Gui.CrashReport
{
SetException(SerializableException.ToBase64String(ex.ToSerializableException()), 1);
}
-
- public override string ToString()
- {
- var exceptionToDisplay = Guard.NotNullOrEmptyOrWhitespace(nameof(ExceptionString), ExceptionString);
- exceptionToDisplay = exceptionToDisplay.Replace("\\X0009", "\'")
- .Replace("\\X0022", "\"")
- .Replace("\\X000A", "\n")
- .Replace("\\X000D", "\r")
- .Replace("\\X0009", "\t")
- .Replace("\\X0020", " ");
-
- return exceptionToDisplay;
- }
}
}

MODIFY
WalletWasabi.Gui/CrashReport/Helpers/StartCrashReporterHelper.cs
WalletWasabi.Gui/CrashReport/Helpers/StartCrashReporterHelper.cs
@@ -18,13 +18,7 @@ namespace WalletWasabi.Gui.CrashReport.Helpers
Environment.Exit(-1);
}
- var jsonException = JsonConvert.SerializeObject(new SerializableException(e), Formatting.None)
- .Replace("\'", "\\X0009")
- .Replace("\"", "\\X0022")
- .Replace("\n", "\\X000A")
- .Replace("\r", "\\X000D")
- .Replace("\t", "\\X0009")
- .Replace(" ", "\\X0020");
+ var jsonException = JsonConvert.SerializeObject(new SerializableException(e), Formatting.None);
var args = $"crashreport -attempt={prevAttempts + 1} -exception={jsonException}";

Remove the string replaces