fix newline stripping