Handle unserialisable headers
moved implementation in-line
break out logging from iteration
Merge pull request #105 from onefinestay/unserialisable-headers

Handle unserialisable headers