fix cross compilation due to bug in MinGW 8.3.0

implicit conversion from `filesystem::path` to `string` not supported even though it's in the standard
1 job for master in 2 minutes and 1 second (queued for 2 seconds)
Status Name Job ID Coverage
  Build
passed build #7205

00:02:01