edit encode