If payload format unknown when sending, assume JSON.

See #181.