Fixed a double-percent-encoding bug.