diff --git a/umis/umis.py b/umis/umis.py
index <HASH>..<HASH> 100644
--- a/umis/umis.py
+++ b/umis/umis.py
@@ -391,7 +391,7 @@ def tagcount(sam, out, genemap, output_evidence_table, positional, minevidence,
     buf = StringIO()
     for key in evidence:
         line = '{},{}\n'.format(key, evidence[key])
-        buf.write(unicode(line), "utf-8")
+        buf.write(unicode(line, "utf-8"))
 
     buf.seek(0)
     evidence_table = pd.read_csv(buf)
Fix typo in handling unicode

This appears to be a misplaced end parenthesis from:
<I>d6ad<I>eb<I>a<I>a<I>a<I>d<I>e<I>a2