change load.js to use encoding set in boot.js, attempt at decoupling type and deserialize type