don't crash on invalid %-encoding
added test for %syntax problem
Merge pull request #2 from sofatutor/fix-invalid-encoding

Don't crash on "invalid %-encoding"