dump() should be the one processing newlines.