Make sure keys are escaped in the generated JSON.
jQuery validation of checkbox group fields doesn't work (Fixes #209)