Convert search query to ascii