Proper splitting up of URL path components