Fixed unicode issue by using str_or_unicode

I hope this works much better for you.