Fix possible syntax error within localgroups

If the strings contains a ' char, it would give a syntax error. This should fix that.

Change-Id: Icb189ce00f793369801abe2ec71c8375a502f619