Fix bogus formatting of atoms. Need quotes in certain cases.