Fix issue#39 - convert str to unicode