added support for custom encoders/decoders, use by defining a sub that receives $options(hash)/$response(string) as first and  as second argument