fixing ConfigParser error for unit test
change file mode to text-mode for encoding purposes