Fixed for_qs for urlencode. This fixes #515
diff --git a/jinja2/utils.py b/jinja2/utils.py
index cdd4cd3..612d5c3 100644
--- a/jinja2/utils.py
+++ b/jinja2/utils.py
@@ -295,7 +295,7 @@
         obj = text_type(obj)
     if isinstance(obj, text_type):
         obj = obj.encode(charset)
-    safe = for_qs and b'' or b'/'
+    safe = not for_qs and b'/' or b''
     rv = text_type(url_quote(obj, safe))
     if for_qs:
         rv = rv.replace('%20', '+')