[Generator + Invoices] Changed user mail format to lowercase, made minor fix to invoice download.