Fix invalid byte sequence.