properly fix the dialog values escaping for nonascii chars
mi_json: escape '\\' character

also fix incorrect '"' escaping
remove bogus flushing for mi_json

TODO: find a proper way for handling flushing, since the current
implementation leads to a infinite loop