Fix invalid charset and typo error