Fix device api date encoding.

Cheshire beats data.json again.

Fix for #153