core: use resolveResourceUri for resolveNSFilename instead of custom code