GCM python3 compatibility

GCM str encode
Merge pull request #23 from halak/master

Fix unicode issues on Python 3