Is there a way to escape a question mark?

I have a metrics path that requires url parameters. I am using relabel_configs to grab a custom metrics_path.

            relabel_configs:
              - source_labels: [__meta_consul_service_metadata_metrics_path]
                action: replace
                regex: (.+)
                replacement: $1
                target_label: __metrics_path__

It works and the url makes it to Service discovery which finds this tag:

__meta_consul_service_metadata_metrics_path="/metrics/detailed?family=queue_coarse_metrics&family=queue_consumer_count"

When it converts it into a Target, the Endpoint becomes:

http://10.254.0.8:64885/metrics/detailed%3Ffamily=queue_coarse_metrics&family=queue_consumer_count

Is there some way to escape the question mark (?) so that it is parsed properly?

I know that I can create a whole new scrape job and use the params option:

          - job_name: nomad-agents
            metrics_path: /metrics/detailed
            params:
              family: ["queue_coarse_metrics", "queue_consumer_count"]

However, I am using:

          - job_name: nomad-jobs
            consul_sd_configs:

This allows me to have all services get setup for scraping automatically. It would be nice not to need to manually define a separate scrape job.