I don't think there's need because:
* This is only used in the very specific context of formatting keys for couch requests.
* These keys only include replica_uids and integers, which should be serializable.