Arttu Ruotsalainen scored the winner in a shootout as Finland beat Canada 3-2 in IIHF World Championship action.