escape bad request data