Escape String resources from resource files.

Fixes #1091. Closes #1094.