serialize/deserialize for bigint