Add a hook to let the response know that after being serialized that it has been encoded.