Fix hang on invalid newline inside quoted parameter