added textToBinary function for avalanche effect