Utility: quick patch for Resource string-to-number conversion.

The code is a big mess anyway, but this thing alone allows it to run
flawlessly with Emscripten.