Replace insane auto sanitization with p()

WIP - don't merge yet. Apps in apps repo need to be changed as well and a mail to the ML needs to be sent to inform 3rd party devs.

Ref #1963 

\cc @Raydiation