Why are we encoding at this step? Seems like the server would simply call `env.response.encode`. There isn't a need for any middleware to encode anything (unless I'm missing something).