fix: add emscripten memory image as binary suffix

Emscripten generates binary files with a .mem suffix which
are used to initialize static data. This change makes Karma
treat such files as binary, and hence not preprocess them.
Merge pull request #1230 from 0u812/emscripten-mem-fix

Treat emscripten memory images as binary