fix sending newline strings