Influx statmetric encoder

Protect against non numeric tonumber(...)