Add encoding info to HTML header. Fix #492
Merge pull request #510 from darwindarak/fix_display_encoding

Add encoding info to HTML header. Fix #492