Allow case-insensitive path rewriting when generating file download URLs