Fixed TypeError when serializing 'bytes' in Python 3
Merge pull request #358 from hareevs/master

Avoid TypeError when serializing 'bytes' in Python 3