fix invalid %-encoding problem