textutils: python 2.6 compatibility fix

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Merge pull request #108 from kaplun/prod-unicode-fix

textutils: python 2.6 compatibility fix