Workaround hex parsing bug in emscripten, fixes in load/save routines.