function stringify(arr, offset = 0) {
	const uuid = unsafeStringify(arr, offset);
	if (!isValidUUID(uuid)) {
		throw new TypeError("Stringified UUID is invalid");
	}
	return uuid;
}
Safely converts byte array to hex string with validation.
@param {Uint8Array} arr - Byte array to convert
@param {number} offset - Starting offset
@returns {string} Hex string