Fix exception on URL parsing.