US fashion retailer Urban Outfitters has recorded a "strong" second quarter thanks to new store openings and improved merchandise margins.