Change the way we serialize/deserialize datetime objects