Thanks for your answer. I already customized this page. I always create a cloned version and customize it in my own folder. Therefore I don't have issues with upgrades.
The question in particular is, if it is actually possible to use html in messages? I already changed the code, that it uses the html version of the friends request template, but it always renderes as plain text in messages. I can't find where I can set it to html encoded.