fix unicode problem that resulted in None string