Test percent-encoding malformed inputs