Replaced use of deprecated escape() with encodeURLComponent()

I couldn't get the library to fetch addresses with non-ascii characters. This change fixed the issue.

According to the thread below, escape has been deprecated for a long time.
http://stackoverflow.com/questions/75980/best-practice-escape-or-encodeuri-encodeuricomponent