Ensure EchoResource properly encodes the headers