Add encoding compatibility with django 1.4/1.5 + Python 3

Hello, I just found out how to make a pull request so I hope I'm not doing it wrong. This pull request changes encoding in the related view so that it uses the new functions in django 1.4 and 1.5. It's fully compatible with the 2 versions, python 2.x and python 3.x, and future proof.

It also adds supports for python 3 __str__ which replaces python 2 __unicode__ and specifies it in the docs.