Fix error in textToENML, BeautifulSoup not parsing strings with non ascii characters

When there are non ascii characters in edit command, it throws:

     Error while parsing text to html. Content must be an UTF-8 encode.