a bit safer JSValueRef => JSON str conversion