Added esbulkapi encoder