Added overload to get settings from file with specific encoding
 + added tests