Treat emscripten memory images as binary

We're using Karma to run some tests against an Emscripten-generated wrapper library. By default, it creates a .mem file which is used to initialize the static data. These files are corrupt when served by Karma, as described in #864 etc. For this change, I simply added .mem to the list of excluded extensions.