Add posibility to set Language encoding flag. Changed way to set settings.