Invalid user after renaming it

We're running GW 2014 SP 2 on SLES 11 SP3 OES.
After renaming a user its not possible to access it.
we changed a user's name to have a space in it and can't get into it to remove the space.
In my admin console I've got an error:

*javax.naming.NameNotFoundException: The object is invalid. MyDomain.MyPO.WOB-CT 707.; remaining name 'MyDomain.MyPO.WOB-CT 707'

curl -k --user admin:password -H "Content-Type:application/json" -X POST https://ipofserver:9710/gwadmin-service/domains/domain-name/postoffices/po-name/rename --data '{"objectId":"RESOURCE.dom1.po1.Test Resource","newObjectId":"TestResource"}'

is command at console to rename a resource.
I can't figure out what syntax is correct to rename a user.
Can some one help?