Better wordwrap implementation.