unified URI handling for eclipse and plain Java