Rename encode/decode methods to make plugin work with resque-loner