Remove duplication of the Hexify function. Remove the useless extern keyword from function declarations in ps/Util.h.
Patch by echotangoecho, refs #4095