Serializing payload in native cookie.

Signed-off-by: Ben Corlett <bencorlett@me.com>