Convert HTML 4.0 to XML before converting to XHTML

The previous method of HTML 4.0 to XHTML didn't handle unclosed
tags like 'meta'.