update encoding in htmls