Added utf-8 encoding when writing a file