fixed rpmbuild warning of missing file
encoding: all encode methods are using utf-8 coding instead of default ascii
using write_to_file py2/py3 compatibility write function
replaced 'unicode' conversion functions with 'ucd' (RhBug:1095861)
takes non-ascii cmd line input (RhBug:1092777)
cosmetic: replaced yum with dnf in comment