Make sure that names for Graphite metrics are properly escaped

refs #7334