Cast incoming ruby data into unsigned char