apetag: add support for writing APE tags