Update resource.js

 - set defaukt encoding to true