Fix Broken Text Encoding
You have a text file with broken encoding? You want to strip it from all invalid characters?
Here is how to do it:
iconv -c -t ASCII input.txt
The result will be printed to stdout. The -c switch does the stripping. Using -t you can select every target encoding you like.