Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.0 Beta 3).
Change log:
Appropriately handle text/body strings passed into Mail::setContent when length checking.