string str = "78738\01212";
string str_2= Regex.Unescape(str);
int index = str_2.IndexOf("\0");
str_2 = str_2.Remove(index);