Add the encoding parameter.
Merge pull request #1 from buri17/feature-encoding

Add the encoding parameter.