[C21.5] Fix file-name handling for `insert-file-contents'