Cast pathnames to strings