fixes bug where serialized string was being reinterpreted as string