NetUtils.getLastSegmentOfURL supports URL with trailing /