0 encodes to null and null decodes to 0