Fixed unicode python 2.7/3 issues.