add encoding/xml import to query