Fix unescape values in queryMemberWithNameForGroup

Fixes to prevent SQLException when using queryMemberWithNameForGroup as reported in crash reports