Minor fixes

I had to move the JSON_DUMPS_ARGS to a separate package so it could be installed correctly (really liked that idea, creating a commong arguments variable). I also fixed some logging, an encoding problem and a typo in the JSON_DUMPS_ARGS variable