Sonar errors with nyc-generated lcov file for typescript

I’m using sonar-scanner in my webpack typescript project.
In my package.json file:

    "cross-env": "5.2.0",
    "extract-text-webpack-plugin": "3.0.2",
    "ignore-styles": "5.0.1",
    "istanbul-instrumenter-loader": "3.0.1",
    "jsdom": "14.0.0",
    "jsdom-global": "3.0.2",
    "mocha": "6.0.0",
    "mocha-webpack": "1.1.0",
    "nyc": "13.3.0",
    "sonar-scanner": "3.1.0",
    "source-map-loader": "0.2.4",
    "ts-node": "8.0.3",
    "tslint": "5.10.0",
    "tslint-loader": "3.5.4",
    "tslint-react": "3.6.0",
    "typescript": "2.6.1",
    "webpack": "3.8.1",
    "webpack-node-externals": "1.7.2"

nyc produces an lcov.info file like this:

TN:
SF:C:/dev/ui/node_modules\tslint-loader\index.js??ref--2-0!C:\dev\ui\app\frontend\javascripts\components\spec.ts
FN:55,(anonymous_5)

And when I run it with sonar-scanner with the option -Dsonar.typescript.lcov.reportPaths="coverage/lcov.info"
I get a parsing exception:

11:10:43.666 INFO: Sensor SonarTS Coverage [typescript]
11:10:43.666 INFO: Analysing [C:\dev\ui\coverage\lcov.info]
11:10:44.000 INFO: ------------------------------------------------------------------------
11:10:44.000 INFO: EXECUTION FAILURE
11:10:44.000 INFO: ------------------------------------------------------------------------
11:10:44.000 INFO: Total time: 56.844s
11:10:44.052 INFO: Final Memory: 16M/566M
11:10:44.052 INFO: ------------------------------------------------------------------------
11:10:44.052 ERROR: Error during SonarQube Scanner execution
java.nio.file.InvalidPathException: Illegal char <?> at index 56: C:\dev\ui\node_modules\tslint-loader\index.js??ref--2-0!C:\dev\ui\app\frontend\javascripts\components\spec.ts
        at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
        at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
        at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
        at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
        at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
        at java.io.File.toPath(File.java:2234)
        at org.sonar.api.scan.filesystem.PathResolver.relativePath(PathResolver.java:121)
        at org.sonar.api.batch.fs.internal.AbsolutePathPredicate.get(AbsolutePathPredicate.java:52)
        at org.sonar.api.batch.fs.internal.DefaultFileSystem.inputFiles(DefaultFileSystem.java:149)
        at org.sonar.api.batch.fs.internal.DefaultFileSystem.inputFile(DefaultFileSystem.java:115)
        at org.sonar.plugin.typescript.lcov.LCOVParser.loadCurrentFileData(LCOVParser.java:141)
        at org.sonar.plugin.typescript.lcov.LCOVParser.parse(LCOVParser.java:85)
        at org.sonar.plugin.typescript.lcov.LCOVParser.parseReportsAndSaveCoverage(LCOVParser.java:70)
        at org.sonar.plugin.typescript.lcov.LCOVCoverageSensor.saveMeasureFromLCOVFile(LCOVCoverageSensor.java:70)
        at org.sonar.plugin.typescript.lcov.LCOVCoverageSensor.execute(LCOVCoverageSensor.java:43)
        at org.sonar.scanner.sensor.SensorWrapper.analyse(SensorWrapper.java:53)
        at org.sonar.scanner.phases.SensorsExecutor.executeSensor(SensorsExecutor.java:88)
        at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:82)
        at org.sonar.scanner.phases.SensorsExecutor.execute(SensorsExecutor.java:68)
        at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:88)
        at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:180)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121)
        at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:302)
        at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:297)
        at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:271)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121)
        at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:48)
        at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:84)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:121)
        at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:121)
        at org.sonar.batch.bootstrapper.Batch.doExecuteTask(Batch.java:116)
        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:71)
        at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
        at com.sun.proxy.$Proxy0.execute(Unknown Source)
        at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:171)
        at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:128)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:111)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
        at org.sonarsource.scanner.cli.Main.main(Main.java:61)

I suppose I could workaround this by first replacing all the lines with the offending character in them in the lcov.info file before sending it to sonar-scanner, but I don’t know what sonar-scanner is expecting.