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?
What about `\w-` instead of `a-zA-Z0-9_-`?