Rule does not work after moving from 2.5.6 to 3.1.0

An unchanged rule fails due to en invalide character, wich was not the case in former release
Log output:
Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 39: file:///C:/PROGRA~3/OpenHAB/conf/Wohnen an.rules
at java.base/java.net.URI.create(URI.java:883)
at org.openhab.core.model.lsp.internal.MappingUriExtensions.toURI(MappingUriExtensions.java:162)
at org.openhab.core.model.lsp.internal.MappingUriExtensions.guessClientPath(MappingUriExtensions.java:129)
at org.openhab.core.model.lsp.internal.MappingUriExtensions.toUri(MappingUriExtensions.java:65)
at org.eclipse.xtext.ide.server.LanguageServerImpl.getURI(LanguageServerImpl.java:572)
at org.eclipse.xtext.ide.server.LanguageServerImpl.getURI(LanguageServerImpl.java:564)
at org.eclipse.xtext.ide.server.LanguageServerImpl.hover(LanguageServerImpl.java:713)
at org.eclipse.xtext.ide.server.LanguageServerImpl.lambda$hover$30(LanguageServerImpl.java:705)
at org.eclipse.xtext.ide.server.concurrent.ReadRequest.lambda$doRun$0(ReadRequest.java:66)
… 5 more

rule "Wohnen an"
when
    Channel 'astro:sun:local:set#event' triggered START
then  
    if (inhouse.state != ON)     
        switch(now.getDayOfWeek) 
            { 
                case 1: {createTimer(now.plusMinutes(12)) 
                [| 
                    Wohnen.sendCommand(ON)
                    Timer1.sendCommand(OFF)
                ]}
                case 2: {createTimer(now.plusMinutes(2))
                [|
                    Wohnen.sendCommand(ON)
                    Timer1.sendCommand(ON)
                ]}
                case 3: {createTimer(now.plusMinutes(16)) 
                [| 
                    Wohnen.sendCommand(ON)
                    Timer1.sendCommand(ON)
                ]}
                case 4: {createTimer(now.plusMinutes(6)) 
                [| 
                    Wohnen.sendCommand(ON)
                    Timer1.sendCommand(OFF)
                ]}
                case 5: {createTimer(now.plusMinutes(22)) 
                [| 
                    Wohnen.sendCommand(ON)
                    Timer1.sendCommand(ON)
                ]}
                case 6: {createTimer(now.plusMinutes(15)) 
                [| 
                    Wohnen.sendCommand(ON)
                    Timer1.sendCommand(OFF)
                ]}
                case 7: {createTimer(now.plusMinutes(8)) 
                [| 
                    Wohnen.sendCommand(ON)
                    Timer1.sendCommand(ON)
                ]}
            }
        
end```

So which is line 39 in that file? Delete that line and retype it. Do not copy and paste because there is likely an hidden special character that has somehow been inserted on that line.

case 7, the one below. Unspectacular, I have already checked and have no clue

You’ve checked but have you done as I asked:

Delete that line and retype it. Do not copy and paste

There are all sorts of characters that are not visible that can find their way into files.

Yes I did, thanks again.
I wonder how they got in, I fond more in other lines but they had not bad infuence.

It’s almost always a mystery. Could be SD card corruption. Could be copy and paste from somewhere. Could be cosmic rays flipped some bits. Who knows.

Thanks anyway