Avoid matching NULL char for all queries.