trim lists before saving to get rid of "\n" and "\r" control characters.