fixes #6 handling xml entities