Fix check on unicode strings, should support both Python 2/3
Merge pull request #67 from csparpa/bugfix/#65_unicode_strings

Fix check on unicode strings, should support both Python 2/3