Add function to word wrap long character vectors

This functionality is very useful in plot legends for instance.