Do not die on binary output with json logging
Merge pull request #948 from Topface/3.7-json-logging

Do not die on binary output with json logging