Switched to using pako instead of Node's own zlib module because that was generating inconsistent output on OS X and Windows