Sanitize Metric prefix in GraphiteReporter

If the prefix accidentally contains spaces, it will be rejected by
Graphite/Carbon with the following error:

invalid line received from client <ip:port>, ignoring