Fix _takeBytes bounds check
Merge pull request #33 from jgetto/master

Fix _takeBytes bounds check