try to be more liberal to str values coming to unicode types