let get_uint8 str off = (if (off < 0) || (off >= (String.length str)) then raise (Invalid_argument "index out of bounds") else (); unsafe_get_uint8 str off)