[Bug 932014] New: log functions crash with invalid UTF-8