SWI-Prolog Did You Know Did you know? SWI-Prolog tables can be shared between threads Search Documentation:
Predicate uri_encoded/3