Fixed newlines in files by sending a header('Content-Type: text/plain');