Serializer is an interface to various serialization mechanisms.