the encoding argument was added in 2.3
Merge pull request #86 from robocoder/encoding-patch

the encoding argument was added in 2.3