Merge pull request #41 from ovidiuiliescu/master-enough

Fixed TextUtil.wrap() taking extremely long in certain situations.
Fixed off by one error that could cause array index out of bounds exceptions.