Deal better with groups that contain non-ascii chars. [ci skip]