Implemented the URLEncoder class.