Fixing RPC Bytes handling