be more forgiving of unicode encoding errors