Rewrite a record or key returned from an MVCC iterator.