Fixed single quote escaping