Fix string '0' not being exported correctly.

Fixes #3518