Correct invalid behavior when try to serialize a string, an exception was throws when calculate the NodeName.