Convert a filename to a resource name.
resource_name(filename)
character. The filename.
the resource name (i.e., stripped of idempotence and extension).