word-wrap, in ruby