As suggested by @mpriour, it would be nice if the user could determine how date values are encoded in literal elements. Extending this beyond date values, we can provide an `encodeLiteral` method that can be overridden to provide application specific behavior.