added fixed encoding of the response