json encode for binary strings is impossible