Add a scriptfunction to escape apostrophes.