refactor: extract contentType test to method
get charset so we can reencode it properly
refactor: extract to method
Merge pull request #29 from flopezluis/master

Honour the charset that comes with content/type=...;charset=foobar header when producing a HAR