{?currency:1} cut the euro sign in half
Operator::inject() applied the prefix modifier with substr(), which counts bytes. The euro sign takes three bytes in UTF-8, so the template {?currency:1} with the value €uro gave ?currency=%E2, a fragment that is not valid UTF-8 once decoded.
The prefix counts characters
The prefix is now taken with mb_substr() and an explicit UTF-8 encoding, as section 2.4.1 of RFC 6570 requires, so the result does not depend on the application's mbstring settings. The multibyte cases from the RFC 6570 conformance suite bundled with the project now pass as well.