Update to reference localhost for encodeURIComponent calls rather that server ip - thanks w32-blaster