Replace echo with `p` or `print_unescaped`

Using echo instead of `p` or `print_unescaped` is a bad style, to prevent people from copying it  I've adjusted it.
Merge pull request #8062 from owncloud/remove-echo

Replace echo with `p` or `print_unescaped`