Avoid calling URI.parse as it breaks on files like resume[1].docx