fix windows access violation: can't pass string views directly to fortran