Added ability to set customer encoder/decoder