Fixed unicode bug for Python 2
Test for unicode correctness