fixing unicode string bug that happens on python > 3.2. closes #39