Add logs and encode comments to UTF-8 in the database