fix for latest 'Encode'
Merge pull request #8 from syohex/fix-for-latest-Encode

fix for latest 'Encode'