Update ssi.js

Fixed issue with writeFileSync encoding parameter