private static string NormalizeString(string text) { text = text.Replace("\r", "\\r"); text = text.Replace("\n", "\\n"); text = text.Replace("'", "\\'"); return text; }