Code changes to use proper open-uri methods.