Fix add_data handling when input is a string

Fixes outbound.send_email(from, to, contents) where contents is a string as currently this will incorrectly lead to add_line() receiving the string with \r\n endings and therefore the headers will not be parsed correctly.