Consider to use Cro::HTTP::Request and the query-hash function … https://cro.raku.org/docs/reference/cro-http-request, specifically URLs in the wild have some quirks and it is quite tricky to roll your own robust implementation