*using ENT_SUBSTITUTE with htmlspecialchars to prevent issue with blank string on unknown character