Posted solution for invalid byte sequence