move client name and group name, add in js string encoding