Fixed "no data" case when an encoding is specified
Merge pull request #23 from zertosh/master

Fixed "no data" case when an encoding is specified