parse_url to strip off query vars - for determining file type only