fixing java.net.URL 'no protocol' error on some platforms