Add setting to customize encoding.