Replace newlines with spaces.