URL encoding string method adjustment