Fixed newline popping in client to work with linux and windows.