Use Sanitizer::escapeClass to handle e.g. spaces in group ids

Change-Id: I8e132ad5356458774f789adf030a920c6b974c29
Merge "Use Sanitizer::escapeClass to handle e.g. spaces in group ids"