hmmm -- I have used sp_renamedb in the past without any issues, and it still works. I think it is wrong to post multiple answers that are both OK. I now realize that the stored procedure is in maintenance mode, but sometimes you need to cut us old timers some slack.
OK -- now I went back and reread the question. At first I did not see the "in a way that will be supported in the future". My bad!