added support for null string serialization