Add encoding directive