Fix for dumps to use the encoder with datetime support.