Added functionality to remove characters which are not accepted by statsd/graphite