fix encoding functions return values
Merge pull request #1 from opentechinstitute/encoding-returns

fix encoding functions return values

tested by areynold