Use `body = Body.from(...)` instead
import com.varabyte.kobweb.api.http
body = Body.encode(body, bodySerializer)