Allow callers to pass encoder options