RevisionStore: Properly encode timestamp