Escape wfMessages in links

Per Nikerabbit's comments at
https://gerrit.wikimedia.org/r/#/c/80090/3/BookManagerv2.hooks.php

Change-Id: Ic840b74105b342da2e3dec1e3e202f3fa2feb9b8