Twisted brane charges for non-simply connected groups