Changed .toLatin1() to .toUtf8().