Fixed unsafe name handling in gmtool

Names of characters and accounts now get encoded properly for the html
display.
Fixed encoding bug in account display