append a new-line char when writing out the string text. Not sure if this is a good final solution, but should work for now. Fixes #1