handlers to support for unsigned octet vector

I still have to deal with some legacy japanese coding system and sometimes binary response.
I can't find the way to do that without serializing data into file.
Sorry in advance if it is already possible.