boto/boto — pull request #846 by djw (2012-07-01 19:47:27+00:00)
Title: Check type of raw_message before encoding

The type of raw_message needs to be checked before encoding — it may already be a utf-8 encoded string.

Django, for example, will convert the message to a bytestring before passing it to the email backend.