hex to bin update for older php