Fixing escape for single quotes