Finally fixing encoding of HTML output for 2 and 3.

Signed-off-by: Ryan Helinski <rlhelinski@gmail.com>