Unspecified value parameter charset

Previosuly my simulations were working fine with 3.3.1. Now i have upgrded to 3.6.0 and my code is failing to compile with this error.

14:05:13.164 [ERROR] i.g.c.ZincCompiler$ /clients/gatling/foo/BAR.scala:307:27: not enough arguments for method apply: (string: io.gatling.core.session.Expression[String], charset: java.nio.charset.Charset): io.gatling.core.body.StringBody in object StringBody.
Unspecified value parameter charset.

Looking at this page https://gatling.io/docs/current/http/http_request/, i have tried different varaints but still get the same error.

I am sure this is something trival as i might have to set or pass a charset but a little hand holding will be appreciated.

You’re breaking the imports.

Don’t import io.gatling.core.body.StringBody.

Stick to the standard imports.

import io.gatling.core.Predef._
import io.gatling.http.Predef._