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.

Apps: https://github.com/owncloud/apps/pull/631

Ref #1963 

\cc @Raydiation