Rename a resource.