Fix Functions comment and add encoding to mswin_htmlentities