Fix for unicode error in Python 2.x
Added test for unicode error in Python 2.x