handle utf8 decode errors