title: Node Express 500 Error: Unknown encoding
body: <p>I am running an Express application on Nodejitsu. It's Node 0.8 and Express 3.4.0. The application works absolutely fine locally, but one of the routes has stopped working and returns the following error when I push to Nodejitsu:</p>
  
  <pre><code>Express
  500 Error: Unknown encoding
  at Buffer.toString (buffer.js:440:13)
  at Object.fs.readFileSync (fs.js:241:33)
  at handleCache (/opt/run/snapshot/package/node_modules/ejs/lib/ejs.js:65:21)
  at exports.renderFile    (/opt/run/snapshot/package/node_modules/ejs/lib/ejs.js:206:14)
  at View.exports.__express [as engine] (/opt/run/snapshot/package/node_modules/ejs/lib/ejs.js:510:22)
  at View.render (/opt/run/snapshot/package/node_modules/express/lib/view.js:76:8)
  at Function.app.render (/opt/run/snapshot/package/node_modules/express/lib/application.js:504:10)
  at ServerResponse.res.render (/opt/run/snapshot/package/node_modules/express/lib/response.js:798:7)
  at exports.m2 (/opt/run/snapshot/package/routes/login.js:27:9)
  at callbacks (/opt/run/snapshot/package/node_modules/express/lib/router/index.js:164:37)
  </code></pre>
  
  <p>I have nt changed anything about the route. I added a new route to the sme routing file which works, but should not affect this route). I haven't changes the view template in any way, or done anything I can think of to change the encoding. Given that Nodejitsu just takes my package.json and installs all the same modules, everything about the app should be identical. </p>
  
  <p>I'm not sure how to track down the issue since the Nodejitsu logs are identical to the output error and I can't reproduce locally. I tried commenting out the new route, and it had no effect.</p>