Fixed setHeader while Android had problems with stringstreams.