Explicitly convert pathname to string for Chef.