HtmlTemplate: set lang and xml:lang attributes of <html> element
fix a bug that does not reflect --force option when $KCODE is set