sanitize $REX['SERVER']

refs #123