title: How to remove non UTF-8 characters from text file
body: <p>I have a bunch of Arabic, English, Russian files which are encoded in utf-8. Trying to process these files using a Perl script, I get this error:</p>
  
  <pre><code>Malformed UTF-8 character (fatal)
  </code></pre>
  
  <p>Manually checking the content of these files, I found some strange characters in them.
  Now I'm looking for a way to automatically remove these characters from the files.</p>
  
  <p>Is there anyway to do it?</p>