Write password as unicode string