Added a test on the url encoded strings (thanks to @simonpercivall)