fix when sys.stdout has no encoding attribute (it happen in gunicorn)
1.5.3 version
Merge pull request #10 from snbuback/master

Fix problem when using with gunicorn (django command)