set Content-Type header when manually serializing response