fix bug with incorrect reading xml with UTF-8. Divide logic with controller