Improve NormalizedNodeInputStreamReader defensiveness
If face of corrupted streams, for example due to CONTROLLER-1752,
we can end up interpreting unknown bytes as null strings, potentially
corrupting data.
This patch uses explicit type dispatch and detects wrong string
value types, as well as rejecting unknown string value codes.
Change-Id: Ic2e7887bc1d32a1dc7a364d1bff195752edd762d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
bfed3c0a9e208b7fd45d6a853f9c63ef95fde00e)