Implement word wrap (fixes #61)