properly encode email body content