Support for Django 1.4 with python 2.5, copied from
https://github.com/jhmaddox/django-precompressed/issues/1
("AttributeError: StringIO instance has no attribute 'name'")
Encode email message body into UTF-8 always when on Python 2; although I originally thought that this was a Python 2.6 thing, it looks like it might be some combination of platform/version, but bytes should always be fine.
Adding target to travis.ci link.
Merging in changes from buriy:master (pr #5)
Minor PR cleanup and reorganization.
Adding missing import.
Bumping version number.
Added tag 2.2 for changeset 6ad729a34dde