Replace the SQL wildcards _ and % with ? and * respectively to avoid
conflict with valid identifier names.