Fixed extraction of json files

Fixed a small bug where json files with "application/json" mimetype were getting base 64 decoded.