URL encoding the segment for consistency  refs ##2981