fixed #244 - better ustr function