Except as provided in s. 301.47, the court, upon granting a divorce, shall allow either spouse, upon request, to resume a former legal surname, if any.