Escape spaces in group names in solr query conditions

If spaces in group names aren't escaped the solr query becomes invalid and solr throws a 400.  The PR fixes that in both the normal and policy-aware access controls enforcement.