improve encodeString to also let pass o false NaN and undefined (were translated into protocol-nulls)
expand test to consider 0 NaN undefined and false values