Took care of an encoding issues with HTML literals and also with XML Literals (the usual unicode vs. encoding problem in Python2:-(