fixes #2398 - fix ruby 1.9 issue when loading free ip, causing {} in URL

Replaces #518