Handle file objects without encoding attribute set
Merge pull request #6 from smarkets/master

Handle file objects without encoding attribute set