Added platform independent URL parsing