Changed encoding and method of reading file in unit tests.