Make sure we allocate a direct buffer when encode http responses