encode language's manifest file with :invalid=>:replace and :undef=>:replace to avoid SyntaxError on eval and InvalidByteSequence on JSON.parse()