Updated the code for dehtml() to deal with entity/char references.

Code from xperroni/bit4 post in http://stackoverflow.com/questions/328356/extracting-text-from-html-file-using-python