Fixes problems with carbon-list stripping chars during output

Fixes #3 and adds tests to cover this problem.