Update logger to write files in UTF-8.
Update files encoding from ANSI to UTF-8.
Fix error with empty format.