More test cases.
Fixed urlEncode (was actually urlFormEncode)