Fixed TextUtil.wrap() taking extremely long in certain situations.