don't double encode JSON repsonse

by default json encoder does utf8 -> bytes conversion and this thing is optional, so check property and decide what to do.