(bug 17857) Make {{anchorencode}} work in a manner more similar to the way that