url encode/decode title name

(cherry picked from commit 94845b2b90e403acc95a26b4f8666c592c3df541)