fixes #2670 - fix apostrophe quoting issue