Replace deprecated Java Script function: "escape" with "encodeURI"
Merge pull request #470 from jesuino/RESTEASY-880

Replace deprecated Java Script function: "escape" with "encodeURI"