Allow single quotes in XML encoding regexp.