remove encoding key into bytes