Expose API for custom encoding algorithms