Handle incorrect encoding by dropping the characters