Fixed string exporting

Escape characters are now exported in their proper format.