merge for deploy 1) move response.send() call to reduce timeouts, 2) re-instate decoding escaped chars