Fixed check such that both sides use bytes.

The possible problem here is that the left side uses bytes while the right side uses characters.
(Probably a theoretical problem)
Merge pull request #65 from floere/patch-1

Fixed check such that both sides use bytes.