fix issue changing roles of users with hyphen character in username