escape newlines in strings