Encode forward slash to %252F to prevent creating URLs with %2F in the path component.