update XHR spec for encodeURI