added .encode('utf8') to the tite setting method