Saving IPP results: \n included in the node id for root node when using name resolver

When using the name resolver on the IPP page and then saving the results, the "id" of the root node gets saved with \n (e.g., "CC(=O)OC1=CC=CC=C1C(=O)O\n" for aspirin), which need to be removed. This is likely the cause of the image of saved results being shown as "invalid smiles" in the home page:

image

See askcos2_core#167 (closed) for steps to reproduce