With the release of Prometheus 3.0, we can set the default name validation mode to UTF-8, simplifying a bunch of code