Fixes #16871: Email notifications are sent with extra blank lines

This at least happened when sending emails through sendgrid.net smtp gateway.  The fix is to set the encoding and line ending properties.