[ftiquery] make queries independent of hashing function [applied]