Add adjustments:
- read configuration file in binary mode
- remove extra encoding
- check if string is binary class and convert it to
standard string
Change-Id: I5f73b6b0e8b5592539e07fe66debf917540ce24c
Story: 2001124
Task: 4816
(cherry picked from commit 1ee321bb05)