Simple resource name extractor
Allow deep ref detection and nest support within encoding