Fixed issue #456: added encoding of ' for string values