E.g.
string s = "Test"; string replace = ""; s.Replace(replace, "Foo"); // game crashes
Maybe this is related ? https://feedback.bistudio.com/T179174