Fix debug output HTML validation when using HTML5 doctype

Title says it all.

Debug output does not validate with HTML5 doctype. It's tedious having to it when trying to validate the page, so this commit fixes the validation.