Seems like the tasks uses only "default" encoding and created file's encoding does not change even when other than default "FileEncoding: UTF8" is set. This was noticed when trying to write ANSI encoded file, the files were written as UTF-8. This should be further investigated and fixed.