fixed issue with non ascii queries