uri match, special case empty segments