fixed reply encoding