enable forced=True for datetime encoder