Fix issue 334, adding urlquote functionality

I've added test for issue reproducing and simple solution for this issue. Please review.
Remove this comment and the whitespace around it. The comment is inapplicable and the whitespace unnecessary.