Slightly smarter test for non-percent-encoded URLs

Thank you: @davemichel