Fix in datetime JSONEncoding