Correctly convert unicode to string