[BISERVER-9097] Use encodePathSegment instead of encodeQueryString when ...

...handling filenames with spaces