Fixed encode method bug.
Bumping version number.
Merge pull request #1 from skrat/fixing_encode

Fixing encode