Fixed issue in regex that parses the URI.