Convert the argument to a string, just in case we are passed Pathname objects.