format influxdb url correctly