add datetime encoding

necessary for ohai

json_gem spec complies with JSON gem format.  this also arguably
fixes issues with yajl-ruby where it does not encode date
objects correctly.