adding EncodingInterface to QueryInterface