Cont'd url-encoding algorithm