Encoding query as ASCII because the OGR binaries don't support unicode

Encoding the query as ASCII fixed the issue. The tests didn't run because they were hardcoded to your machine, but the solution does allow (at least my queries) to complete successfully.