Clean up options passed to Kernel.open/OpenURI.
This addresses issue #10.