TEIID-2681 removing use of PrintWriter due to newline handling