returns an escaper instance that escapes strings so they can be safely included inurl path segments . the returned escaper escapes all non-ascii characters , even though many of these are accepted in modern urls . if the escaper were to leave these characters unescaped , they would be escaped by the consumer at parse time , anyway . additionally , the escaper escapes the slash character '' / '' . while slashes are acceptable in url paths , they are considered by the specification to be separators between `` path segments . '' this implies that , if you wish for your path to contain slashes , you must escape each segment separately and then join them . when escaping a string , the following rules apply : the alphanumeric characters `` a '' through `` z '' , `` a '' through `` z '' and `` 0 '' through `` 9 '' remain the same . the unreserved characters '' . '' , '' - '' , '' ~ '' , and '' _ '' remain the same . the general delimiters '' @ '' and '' : '' remain the same . the subdelimiters '' ! '' , `` $ '' , '' & '' , '' ' '' , '' '' , '' '' , '' '' , '' + '' , '' , '' , '' ; '' , and '' = '' remain the same . the space character '' '' is converted into % 20 . all other characters are converted into one or more bytes using utf-8 encoding and each byte is then represented by the 3-character string '' % xy '' , where `` xy '' is the two-digit , uppercase , hexadecimal representation of the byte value . note : unlike other escapers , url escapers produce uppercase hexadecimal sequences . concode_field_sep String URL_FORM_PARAMETER_OTHER_SAFE_CHARS concode_elem_sep Escaper URL_FORM_PARAMETER_ESCAPER concode_elem_sep Escaper URL_FRAGMENT_ESCAPER concode_elem_sep Escaper URL_PATH_SEGMENT_ESCAPER concode_elem_sep String URL_PATH_OTHER_SAFE_CHARS_LACKING_PLUS concode_field_sep Escaper urlFragmentEscaper concode_elem_sep Escaper urlFormParameterEscaper