Characters of local systems