changed apos.truncatePlaintext to be UTF-8 friendly]