How do I re-associate HTTP links with my browser in OS X?

I installed iTerm2 the other day, and was playing around with it. In the process I seemed to have messed up the handling of HTTP hyperlinks on my system. Sometimes (annoyingly, not every time, which is very confusing - I can't spot a pattern) when I click an HTTP link in the Twitter app, MS Word, and so on, it opens a new iTerm2 terminal window or tab, and the webpage doesn't open. How can I get back to the original behavior and have the link open in the default web browser?

I've already checked the iTerm2 preferences - under "URL schemes", no scheme is selected:

enter image description here


Check the file associations for both HTTP & HTTPS, make sure both are set to Safari.

A simple way to do this would be using RCDefaultApp

enter image description here

Answered as Community Wiki just so we don't have a dangling question when there's a perfectly good answer in the comments.