string.normalize_codec_name: Handle case where name contains \x00.

Bug found during fuzz testing.