added lua encoder for InfluxDB