test for string in a python2 compatible manner
test for string in a python2 compatible manner

and encode given string as unicode


Former-commit-id: 56b726ef674312ba2ad193bd12f29c4d544f0667
DessimozLab/familyanalyzer