Fix problem with query encoding calling in SPARQL_extractor - close #371 issue.