Fixed UTF-8 Encoding problem when writing html files and fixed HTML5
element