Fix invalid UTF-8 sequence in argument error.