JCR-2327: Allow to set permission for users that has a space in their login
JCR-2328: SetPropertyCalendarTest and TestDateValueFormat fail when the cache is disabled