Escape String resources from resource files.
Extract escaping code from ShadowResources to new class StringResources.escape()