Compatibility with 1.8's OpenURI.