Fixed encoding of nullables