Teach http_extractor to base64 encode bodies.

This is enabled by default as it allows http_extractor
to be embedded in other projects. Prior to this the body would
be serialized to a string with unprintable bytes, which would
not be passed through chop.json() properly.

Remove unnecessary custom JSON encoding while here.