fix segfault on wordwrapping a string with a character >=128