Added JSONEncoder for dates