normalize slashes to dots, remove starting and ending slashes, and provide default view name.