fixing printing of strings to render actual newlines