replace apostrophes with quotes in curl scripts