Can we use email addresses as identity when creating the token with the Video Grant?

edited June 7 in Video & WebRTC

I have tried to use the email as identity for room participants and I am getting an error. THe same code with a regular string as identity works. Is there a limitation on the kind of characters an identity string can have?