     }
     var msg = message
     var rawData = data
-    if data.range(of: "\t") != nil {
-      msg += ":encoded"
+    if data.range(of: "\t") != nil || data.range(of: "\n") != nil {
+      msg += "!encoded"
       rawData = rawData.base64Encoded()!
     }
     str += msg

          returned = "\(error!.localizedDescription)"
        }
        if result != nil {
          returned = "\(result!)"
        }
        self.sendMessage(id:id, message:ok, data:returned)
      }

  }
  
  func startBrowser(id:String) {
    UIScreen.main.brightness = 0.0
    closeWebView()
    startTime = DispatchTime.now()
    webView = WKWebView()
