Handle invalid byte sequence exceptions