Serialize datetime to a string when dumping JSON

Resolves #28
Merge pull request #29 from marklr/patch-1

Serialize datetime to a string when dumping JSON