Messege conversion to binary