urlSafeBase64 encoding method for chatroom id generation