Allows open-uri redirections between HTTP and HTTPS.

A bit of context on the issue: http://bugs.ruby-lang.org/issues/859

Fixes #741