Refactor content encoding interceptor out into a separate class