Fix escaping undefined strings (fix visionmedia/mocha#923)