Write the logs with a UTF-8 encoding