Repository: quarkusio/quarkus
Issue: Windows paths not escaped in DevUI

### Describe the bug

On Windows when the DevUI renders the template [main.html](https://github.com/quarkusio/quarkus/blob/91ba39965d13652e853446e227b256a1b8cea477/extensions/vertx-http/deployment/src/main/resources/dev-templates/main.html) the path are not properly escaped leading to the page not being able to be used as JavaScript is broken.

The code [here](https://github.com/quarkusio/quarkus/blob/91ba39965d13652e853446e227b256a1b8cea477/extensions/vertx-http/deployment/src/main/resources/dev-templates/main.html#L146-L150) takes the paths as is and put them into the HTML, leading to the following error `provider:594 Uncaught SyntaxError: Invalid Unicode escape sequence (at provider:594:70)`.

### Expected behavior

The paths should be properly escaped using `\\\\` for path separators on Windows.

### Actual behavior

It lead to the JavaScript error:
`provider:594 Uncaught SyntaxError: Invalid Unicode escape sequence (at provider:594:70)`

### How to Reproduce?

Create/move a project into a path where the directory would start with an invalid Unicode character i.e. `c:\\userproject`.

I have created and uploaded a sample project to Github as a sample:
https://github.com/bwolkerstorfer/sample-quarkus-path-issue

Steps:
1. run the project on Windows using `gradle quarkusDev`
2. navigate to i.e. http://localhost:8080/q/dev/io.quarkus.quarkus-oidc/provider
3. check the JS console

### Output of `uname -a` or `ver`

_No response_

### Output of `java -version`

_No response_

### GraalVM version (if different from Java)

_No response_

### Quarkus version or git rev

2.10.3.Final

### Build tool (ie. output of `mvnw --version` or `gradlew --version`)

------------------------------------------------------------ Gradle 7.5 ------------------------------------------------------------  Build time:   2022-07-14 12:48:15 UTC Revision:     c7db7b958189ad2b0c1472b6fe663e6d654a5103  Kotlin:       1.6.21 Groovy:       3.0.10 Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021 JVM:          17.0.3 (Eclipse Adoptium 17.0.3+7) OS:           Windows 11 10.0 amd64

### Additional information

_No response_

Changed files:
extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/console/DevConsoleProcessor.java

diff --git a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/console/DevConsoleProcessor.java b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/console/DevConsoleProcessor.java
index e2933e22aa6..d5d62e3a682 100644
--- a/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/console/DevConsoleProcessor.java
+++ b/extensions/vertx-http/deployment/src/main/java/io/quarkus/vertx/http/deployment/devmode/console/DevConsoleProcessor.java
@@ -940,7 +940,7 @@ public Object apply(EvalContext ctx) {
                 for (Path sourcePaths : sourcesDir) {
                     List<String> packages = sourcePackagesForRoot(sourcePaths);
                     if (!packages.isEmpty()) {
-                        sourcePackagesByDir.put(sourcePaths.toAbsolutePath().toString(), packages);
+                        sourcePackagesByDir.put(sourcePaths.toAbsolutePath().toString().replace("\\\\", "/"), packages);
                     }
                 }
                 return sourcePackagesByDir;