clean up formatting so newlines in resp are preserved