move escaping until after strict comparison

This should (fingers crossed) bring back the list of quick links in "new
bug" email notifications.