messages: use sanitize helper method
Merge branch 'master' of github.com:studip/studip-rest.ip into studip-2.3