Fix detect_newlines.