add spec for invalid byte sequence