Merge pull request #276 from haberman/fuzz-fix

Removed use of pure substr() in wasm, which can throw for badly formatted files.