remove encoding/binary dependency