Character escaping in StreamResource

Is there a way to prevent the URLEncoding of the resource characters? I’m using it to be able to jump in the PDF:


package com.razvan;

import com.vaadin.flow.component.html.Anchor;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
import com.vaadin.flow.server.StreamResource;

import java.io.FileInputStream;
import java.io.FileNotFoundException;

@Route(value = "link")
public class TestLink extends VerticalLayout {
    public TestLink() {
        StreamResource sr = new StreamResource("PDFReference.pdf#page=100", () ->{
            try {
                return new FileInputStream("C:\\Users\\razvan\\Downloads\\PDFReference.pdf");
            } catch (FileNotFoundException e) {
                throw new RuntimeException("error",e);
            }
        });
        sr.setContentType("application/pdf");
        Anchor a = new Anchor();
        a.setHref(sr);
        a.setText("Click me");
        add(a);
    }
}

The result is jumping at

http://localhost:8080/VAADIN/dynamic/resource/0/5d70a60d-c54e-4875-82de-415580b5b9de/PDFReference.pdf%23page%3D100