Generate better, valid HTML for checkboxes