Updated encoder to recover from panics and return the error instead
Updated encoder to recover from panics and return the error instead

GoRethink/gorethink,brendanobrienesq/gorethink,dancannon/gorethink,GoRethink/gorethink,dancannon/gorethink,the-control-group/gorethink-v1.15,GoRethink/gorethink,dancannon/gorethink,SKatiyar/gorethink