Fix for logging problem with Unicode strings