Fix issue 334, adding urlquote functionality

I've added test for issue reproducing and simple solution for this issue. Please review.
Instead of this try/except block, it might be better to try `from werkzeug.urls import url_quote_plus`, because it handles 2/3 compatibility, I believe. See if that works.