Dealing with encoding errors in Data.Text