Better extraction of the UUID from the URI