Add toString to Appender struct

Taken over from PR #2419.