fix unicode error in textutil

https://github.com/behave/behave/pull/258