Escape spaces for each request. fix #2256