fix #290 apostrophe causes error, replace text marker with double quotes and replace double quotes with single quotes