fix URI generation when using datasource, _GRAPHITE_PRE and _GRAPHITE_post