fix some potential html validation problems