encoding for invalid byte sequence error