Fix invites from spaced realm names