Making sure escaped single quote (') doesn't escape ending quote