Fix an invalid byte sequence error