code: public static String sanitizeGraphiteMetricSegment(String metricNameSegment) {
  		return DISALLOWED_CHARS.matcher(metricNameSegment
  				.replace('.', ':')
  				.replace(' ', '-')
  				.replace('/', '|')
  				.replace('\\', '|'))
  				.replaceAll("_");
  	}
docs: Graphite only supports alphanumeric characters + {@code !#$%&"'*+-.:;<=>?@[\]^_`|~} so each metric name segment has to
  be cleared from other chars.
  <p>
  <pre>{@code
  metric path/segment delimiter
  _|_
  |   |
  metrics.cpu.utilisation  <- metric name
  |     |      |
  -------------
  |
  metric name segments
  }</pre>
  
  @param metricNameSegment the metric name segment (see diagram above for a explanation of what a metric name segment is)
  @return the metricNameSegment that contains only characters that graphite can handle