use correct http response encoder (stupid me)