Basic data question

This will work as long as the message itself never contains newlines. A more robust choice could be 0x03 (end of text) or 0x04 (end of transmission), to stick with the ASCII standard.