Fix handling of non-JSON lines in responses

Garbage lines with ' = ' in them were causing parsing errors,
where key=val lines should not have spaces around the equals.

Fixes #6962
Merge pull request #7140 from jimi-c/issue_6962_traceback_callbacks_unicode

Fix handling of non-JSON lines in responses