Fix separator in append() and compact()

This fixes the bug mentioned in #302.