remove bad encoding