Append newline to tcp messages