fix generation of ids for multiple checkboxes

See https://cakephp.lighthouseapp.com/projects/42648/tickets/4064-formhelper-multiple-checkbox-bug-with-special-chars