Use direct encoding param for backwards compatibility