fix log message barfs on unicode