some browsers add a chartype to content-type headers. fixed code so we split out only the first field of that header. added to example; it's not pretty, but it shows off a little more.