Fix for python 2.x compatible unicode encoding of strings
Merge pull request #421 from Locu/unicode-err

Fix for python 2.x compatible unicode encoding of strings