a script to prettify the syntax of HTML and XML files
handle UnicodeEncodeError exception