Cleaned up generation of a chat user id.