Is this just a coincidence because you provided a utf-8 input?  There's nothing in the implementation that forces the email body to be utf-8.