Fix bug #14822 with decoding when inhibit-null-byte-detection is non-nil.