       }
       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

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

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