IIRC, it is not necessary to add .string() here, right? boost::filesystem::path _should_ be converted automatically.