correct stupid ruby newline handling