Properly escaping list separators when printing to SDF.

Fixing #733 
@dwightguth please review.
and maude