Updated the usage of the function htmlspecialchar as its default encoding type changed to utf8.