Fixed queries based around Date objects (were not previously encoded for queries).
Merge pull request #8 from wwoods/master

Fixed queries based around Date objects (were not previously encoded for...