Ensures compatibility with python 2.5 while preserving unicode compatibility of TextWrapper. Thanks to Bruno Carlin <self@aerdhyl.eu>