Oops, the line above lost it's . It should be:
ns_set update $x_head "Content-Type" "text/plain; charset="iso-8859-1""
-Bob