[Java transform] Local setup's dataset preview Gradle script doesn't work

I followed this guide for dataset preview with local development: https://www.palantir.com/docs/foundry/transforms-common/local-preview

I encountered URISyntaxException because it used Windows backslashes \ inside a URL, causing the task to crash