Output file modified to enforce UTF-8 encoding