bugfix for html entities found by Bram Jans