! add UTF-8 to htmlspecialchars calls

Not much to say about this.

I updated the htmlspecialchars calls in the code to add in the 'UTF-8' tag as versions of PHP <5.4  would use ISO-8859-1 as the character set.  That could cause some issues in some cases.  Some of these did not need to change, but I did anyway as the change *should* be transparent.

May have missed some, hope I did not break anything, travis are you listening?