Update element.py

If response has a "utf8" answer with Cyrillic characters it crashes. Fix for utf-8 and cp1251 encoded responses.