try to solve the unicode reading problem
needed to be file object, not name