Specify encoding when writing html file
Encode while writing html file