Use .format instead of % operator
Pass concatenated filename, we do not need parts
Write file as utf-8 directly
These need to be unicode