re-introduced a sanity check in encoding functions, should avoid a core dump in dumpmodule.pike Rev: src/encode.c:1.106