Refactoring; Ensure queried tag is 8bit ASCII

Fixes SQLITE3 failures