Lua Encoder for InfluxDB

Make these vars local