This prevents a misusage of \OC\Files\View by calling it with user-supplied input. In such cases an exception is now thrown.