change urlEncodAndJoinWithPattern to urlEncodeAndJoinWithPattern

Just fix a typo in a private function name. Conflicts with #7.