Fixed issue: Malformed text in invitations/emails when using text format for emails