remove invalid utf-8 chars