Fixed single quote issues in escaping strings with Safari