enabled to encode/decode instances loaded by non-default class loader.