title: converting files to utf-8 but character destroyed
body: <pre><code>foreach (var f in new DirectoryInfo(@"...").GetFiles("*.cs", SearchOption.AllDirectories)) {
    string s = File.ReadAllText(f.FullName);
    File.WriteAllText (f.FullName, s, Encoding.UTF8);
  }
  </code></pre>
  
  <p>but when converting characters get destroyed. How can i prevent that čćžšđ will not be destroyed?</p>
  
  <p>Manually i fisrt copy text then convert file to utf-8 and paste text back and characters are ok. But here i have more than 200 files and this is too much.</p>