Fix JSON error messages, mostly newlines