fixed newline conversion