Add URL encoding to make requests more reliable.