Use quote_plus instead of just replacing spaces by +