UTF-8 encoded static memory

This is the first of two patches to (optionally) encode statically allocated memory as (escaped) UTF-8 strings. The other patch is in the emscripten repository - I will submit that pull request shortly.