Fix potential XSS vulnerability on user's name

Add other locations as well a failsafe for the htmlentities() call
Merge pull request #1131 from greezybacon/issue/1108

Fix potential XSS vulnerability on user's name

Reviewed-By: Peter Rotich <peter@osticket.com>