This answer could work for you:
response.replace( /\\x[0-9A-F]{2}/gm, function (x) { console.log(x); return String.fromCharCode(parseInt(x.slice(2), 16)); } );