use uri#open instead of kernel.open
should be backwards compatible to 2.3 it seems and fix a deprecation in 2.7