I think you misunderstood the problem. This is not about using UTF-8, but about producing binary log files, refused by tools like less and others.
Writing the log file you don't know the locale used when it is read, so the "if locale == xxx" is bad code. I am forced to *avoid* UTF-8 as a default to make sure that there are no weird side effects later. Just to replace "->"? Harri