refactor: switch from sed to jq -r for quote stripping