Fix encoding errors.