Simplified to_unicode
Fixed crash due to gettext tools returning bytestring