Replace regex parser with byte indexing.

Added several new tests and benchmarks. Based on these tests, using
simple byte indexing is faster than regex parsing. Care must be taken to
validate the input so it's possible that additional logic will be
required to more fully validate malformed metrics.