String conversion to binary array