add some decoding for responses in different encoding