Refine resource URIs