writerfilter: characters() may be called multiple times for a single token

Change-Id: Icdd3dc7740c5f3d82a45b2553fda65c6010ea4e4