Added correct output encoding to transform spec to html format.
Added declaration for html namespace.
Fixed the output of specs in html format.