JCR-2325: Allow to set permission for users that has a space in their login

https://jira.exoplatform.org/browse/JCR-2325