properly encode groups as json, not ',' separated
Merge pull request #10500 from owncloud/fix_userlist_settings_ajax

properly encode groups as json, not ',' separated