Updated file encoding to UTF-8 for output