Palantir from StackOverflow

This command:

iconv -f utf8 -t utf8 -c file.txt will clean up you UFT8 file, skipping all the invalid characters. -f is the source format -t the target format -c skips any invalid sequence

This is the greatest thing ever. Seriously.