convert_01 function

Convert character data to 0/1