Properly escaping list separators when printing to SDF.

Fixing #733 
@dwightguth please review.
and here you need to escape using sdf strings, not K strings