Bug fix for escaping in SQLite 3