Avoid generating checksum from serializing an already serialized string.

Signed-off-by: crynobone <crynobone@gmail.com>