Convert Spark URI to Java URI for Java class loading