use get_array_of_uit8 instead of read_array_of_uint8 for jruby compat