Better stripping of strange characters in tagnames when firing metrics.

Currently we just strip out odd characters but perhaps we should replace them with ``_`` or ``.`` if they're not at the start or end of the number?
\w does tricky things with the LOCALE which I was hoping to avoid.