Fix bug in to_bytes.
Merge pull request #3 from Drup/master

Fix bug in to_bytes.