remove invalid single quotes