remove encoding attachment