You can use this function to replace the invisible chars

Regex.Replace(s, @"[^\x20-\x7F]", "");