Fix toLatin1() changes from 6fa94dd to toUtf8().