driverdan/node-XMLHttpRequest — pull request #58 by krisnye (2013-07-19 02:39:35+00:00)
Title: fix for backslashes in data not encoding correctly

when posting data that contains backslashes such as "\\foo\nbar", it is not encoded correctly.
To fix this, I used JSON.stringify to create a valid string and then remove the first and last ticks with slice(1,-1), then perform your tick escape code.