changed truncatePlaintext to zap trailing commas, because nobody likes this,...