add number to binary string encoder and decoder