Split message

This function splits a long message in the nearest space character (if possible), or just in the middle of a word (as uTox).