Как правильно кодировать «неправильный» URL?
import org.springframework.web.util.UriUtils;

class Main {
    public static void main(String[] args) {
        var path = "announce/Театр-Габима-Дело-всей-жизни";
        var pathEncoded = UriUtils.encodePath(path, "UTF-8");
        System.out.println("https://afisha.orbita.co.il" + pathEncoded);
// https://afisha.orbita.co.ilannounce/%D0%A2%D0%B5%D0%B0%D1%82%D1%80-%D0%93%D0%B0%D0%B1%D0%B8%D0%BC%D0%B0-%D0%94%D0%B5%D0%BB%D0%BE-%D0%B2%D1%81%D0%B5%D0%B9-%D0%B6%D0%B8%D0%B7%D0%BD%D0%B8
    }
}
это 

https://ru.wikipedia.org/wiki/IDN#%D0%A0%D0%B5%D0%...

https://docs.oracle.com/javase/7/docs/api/java/net...

Provides methods to convert internationalized domain names (IDNs) between a normal Unicode representation and an ASCII Compatible Encoding (ACE) representation


примеры кода
www.java2s.com/example/java-api/java/net/idn/index.html