Trim null bytes from end of replies.