Get rid of bad self-closing tags.