Only replace escaped single quotes