I actually encountered and fixed this last night. If you have Homebrew installed on your machine, just run:
brew install libidn
When it finishes, you may have to create some symbolic links to the library, but you'll have a copy on your machine at least.