Implement export (and import) of string data.

Note that the import is not yet tested properly, but it should work.

There is one special case, the string "0" will not be exported correctly.