Add multiple encoding support to HttpRpc for ByteArray