Replace single quotes globally in SQL strings