updated all htmlentities to use ENT_QUOTES and UTF-8 encoding