LUN-753 Quote folder paths when using them in folder listing popups

If a folder contains a single quote and is being used in a folder directory/list popup
the generated onclick attribute for the insert link contains broken javascript:
onclick="opener.dismissRelatedFolderLookupPopup(window, 3, '/Foo's Bar/whatever'); return false;"
(notice the quote in Foo that chops the function's third string argument)

Added a new method that returnes a url quoted pretty logical path. This can be used for the onclick attributes.