Fixed a bug with event names with apostrophes.