Fix an error with passing frozen strings to file resource