Make Error.stack returns a string to match Node.js