Ensures compatibility with python 2.5 while preserving unicode compatibility of TextWrapper